package com.biubiux2.entity;

import java.time.LocalDateTime;

/**
 * @author Lijinbao
 * @since 8/5/2022 3:56 PM
 */
public class ChatMsg {

    int msgFromUserId;

    int msgReceiveUserId;

    String content;

    LocalDateTime dateTime;

    int read;

    public ChatMsg() {
    }

    public ChatMsg(int msgFromUserId, int msgReceiveUserId, String content, LocalDateTime dateTime, int read) {
        this.msgFromUserId = msgFromUserId;
        this.msgReceiveUserId = msgReceiveUserId;
        this.content = content;
        this.dateTime = dateTime;
        this.read = read;
    }

    public void setMsgFromUserId(int msgFromUserId) {
        this.msgFromUserId = msgFromUserId;
    }

    public void setMsgReceiveUserId(int msgReceiveUserId) {
        this.msgReceiveUserId = msgReceiveUserId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public int getMsgFromUserId() {
        return msgFromUserId;
    }

    public int getMsgReceiveUserId() {
        return msgReceiveUserId;
    }

    public String getContent() {
        return content;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public int getRead() {
        return read;
    }
}
